package fw.qaz.asmx.reader.adapter.item;

public class BookItem
{
    private String bookName;              //书名
    private String bookImage;            //使用的图片路径
    private String path;                  //文件路径
    private int readProgress=0;         //读书的进度（读了百分之多少）

    /**
     * POJO类的建议是定义成final class，然后类成员定义为public。
     * 这样，可以避免写大量getter，还可以增加性能，因为这样
     * 取值不需要执行method，减少调用栈开销。
     */

    public BookItem(String bookName)
    {
        this.bookName = bookName;
    }

    public BookItem(String bookName, String bookImage)
    {
        this.bookName = bookName;
        this.bookImage = bookImage;
    }
    public BookItem(String bookName, String bookImage,String path)
    {
        this.bookName = bookName;
        this.bookImage = bookImage;
        this.path = path;
    }

    public BookItem(String bookName, String bookImage,String path,int readProgress)
    {
        this.bookName = bookName;
        this.bookImage = bookImage;
        this.path = path;
        this.readProgress = readProgress;
    }
    public BookItem(String bookName,String path,int readProgress)
    {
        this.bookName = bookName;
        this.path = path;
        this.readProgress = readProgress;
    }

    public String getBookName()
    {
        return bookName;
    }

    public String getBookImage()
    {
        return bookImage;
    }

    public void setBookName(String bookName)
    {
        this.bookName = bookName;
    }

    public void setBookImage(String bookImage)
    {
        this.bookImage = bookImage;
    }

    public void setPath(String path)
    {
        this.path = path;
    }

    public void setReadProgress(int readProgress)
    {
        this.readProgress = readProgress;
    }

    public String getPath()
    {
        return path;
    }

    public int getReadProgress()
    {
        return readProgress;
    }
}
